<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
<%@ page import="com.bsh.shiro.UserContext" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>无标题文档</title>
	<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
	<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/res/js/jquery.js"></script>
	<script type="text/javascript" src="/res/js/lib/json2.js"></script>	
	<script type="text/javascript" src="/res/js/lib/formvalid/FormValid.js"></script>
	<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
	<script type="text/javascript" src="/res/js/common/msgTools.js"></script>	
	<script language="javascript" type="text/javascript" src="/res/js/lib/datePicker/WdatePicker.js"></script>		
 	<script type="text/javascript" src="/res/js/pages/front/feedbackList.js"></script>
</head>
<body>
<div>
    <form action="/feedback/addRecord" method="post" onsubmit="return checkData(this)">
			<div id="tab1" class="tabson">
				<input type="hidden" name="mobile" value="${dto.mobile}"/>
				<ul class="forminfo">
					<!-- <li><label>时间<b>*</b></label>
						<input name="createTime"  valid="required"   type="text" class="dfinput" style="width:150px;" />
					    <span id="errMsg_mobile" class="errMsg">*请输入时间</span>
					</li>	 -->					
					<li><label>客服人员</label>
						<input type="hidden" name="auditor" value="<%=UserContext.getLoginUser().getId() %>"/>
					    <label><%=UserContext.getLoginUser().getLoginName() %></label>
					</li>	
					
 					<li><label>内容</label>		    
					    <textarea  name="feedback" class="dfinput" style="width:710px;height:200px;text-indent: 0px; "></textarea>
					    <span id="errMsg_latitude" class="errMsg">最多输入500个字符</span>	
					    <div style="clear:both;"></div>					    				    					    
					</li>		
					<li><label>是否置顶<b>*</b></label>
						<label>是<input type="radio" name="isTop" value="1" /></label>
						<label>否<input type="radio" name="isTop" value="0" checked/></label>	
					</li>
					<li><label>&nbsp;</label> <input type="submit" class="btn" value="保 存" /></li>
				</ul>
			</div>
		</form>
	</div>
	<div class="place">
    <span>历史记录</span>
    <ul class="placeul">
    <li>（*排序：置顶优先+时间倒排序）</li>
    </ul>
    </div>
    <div class="rightinfo">
   <form id="queryForm" action="/feedback/serviceRecordList/${dto.mobile}" method="post"> 
     <table class="tablelist">
    	<thead>
	    	<tr>
	        <th width="30px;" >编号</th>
			<th width="200px;">记录时间</th>
			<th width="100px;">处理人</th>
			<th>内容</th>
	        </tr>
        </thead>
        <tbody>        
	        <c:forEach items="${list}" var="row" varStatus="status">
		        <tr>
		        <td>${status.index+1}</td>
		        <td><fmt:formatDate value="${row.create_time}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		        <td>${row.auditorName }</td>
		        <td title="${row.feedback}">${row.feedback}</td>
		        
		        </tr> 
	        </c:forEach>
         </tbody>
    </table>  
    </form>
      
    <tags:pager pagerRange="10" pageSize="${pager.pageSize}" totalPage="${pager.pageCount}" curIndex="${pager.pageIndex}" rowCount="${pager.rowCount}" formId="queryForm"></tags:pager> 
 
    
    </div>
    
    <script type="text/javascript">
	   $('.tablelist tbody tr:odd').addClass('odd');
	   
	  
	</script>

</body>

</html>
